package com.netease.xone.itemview;

import protocol.meta.AppInfo;
import protocol.meta.AppInfoDetail;
import Utils.StackTraceUtil;
import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.netease.log.NTLog;
import com.netease.xone.R;


public class RenderDetailText implements IRenderInfoBase{
    private static final String TAG = RenderDetailText.class.getSimpleName();
    
    private View mRoot;
    private TextView mText;

    public RenderDetailText(View v) {
        mRoot = v;
        mText = (TextView)v.findViewById(R.id.text);
    }

    @Override
    public void renderView(Context context, AppInfo appInfo) {
        
    }

    @Override
    public void renderView(Context context, AppInfoDetail appInfoDetail) {
        
    }
    
    public void renderView(Context context, String value) {
        NTLog.d(TAG, StackTraceUtil.getMethodName());
        
        mText.setText(value);
    }
}
